package com.example.mobile2032021606168xmy0608;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        HttpUtil.asyncRequest(new HttpUtil.AsyncCallBack() {
            @Override
            public void onFailure(Exception e) {

            }

            @Override
            public void onRespone(String json) {
                Toast.makeText(MainActivity.this, json, Toast.LENGTH_SHORT).show();
            }
        },"get_all_sense",new String[]{"UserName"},"user1");

    }
}